import request from '@/utils/request'

// 查询园区作业单列表
export function listParkBills(query) {
  return request({
    url: '/park/parkBillsThd/list',
    method: 'get',
    params: query
  })
}

// 查询园区作业单详细
export function getParkBills(parkBillCode) {
  return request({
    url: '/park/parkBillsThd/getInfo/' + parkBillCode,
    method: 'get'
  })
}

// 新增园区作业单
export function addParkBills(data) {
  return request({
    url: '/park/parkBillsThd/add',
    method: 'post',
    data: data
  })
}

// 修改园区作业单
export function updateParkBills(data) {
  return request({
    url: '/park/parkBillsThd/edit',
    method: 'post',
    data: data
  })
}

// 删除园区作业单
export function delParkBills(parkBillCode) {
  return request({
    url: '/park/parkBillsThd/remove/' + parkBillCode,
    method: 'get'
  })
}

// 导出园区作业单
export function exportParkBills(query) {
  return request({
    url: '/park/parkBillsThd/export',
    method: 'get',
    params: query
  })
}

// 查询货物备案列表
export function listHkGoodsBase(query) {
  return request({
    url: '/system/parkGoodsBase/list',
    method: 'get',
    params: query
  })
}

// 查询货物备案列表
export function selectHkGoodsList(query) {
  return request({
    url: '/system/parkGoodsBase/selectGoodsList',
    method: 'get',
    params: query
  })
}

// 批量审核通过
export function auditParkBills(parkBillCode) {
  return request({
    url: '/park/parkBillsThd/audit/' + parkBillCode,
    method: 'get'
  })
}
